﻿using System.Collections.Generic;

namespace System.Modules.SharePoint.Contracts.DTO
{
    /// <summary>
    /// SP Query Order
    /// </summary>
    public class SPQueryOrderFieldsCollection : SPQuerFieldsCollection
    {
        #region Constructor
        /// <summary>
        /// Default Constructor
        /// </summary>
        public SPQueryOrderFieldsCollection() {}

        /// <summary>
        /// Default Constructor
        /// </summary>
        /// <param name="items"></param>
        public SPQueryOrderFieldsCollection(List<SPQueryFieldRef> items) : base (items) {}
        #endregion

        #region Implicit Operators
        /// <summary>
        /// Implicit conversion operator to string
        /// </summary>
        /// <param name="value">The SP Query Value</param>
        /// <returns>A string representation of the SP Query Field Ref object</returns>
        public static implicit operator string(SPQueryOrderFieldsCollection value)
        {
            return value.ToString();
        }
        #endregion
    }
}
